<?php

/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of baseController
 *
 * @author chandu
 */
Error_reporting(E_ALL);
//ini_set("display_errors", 0);
include '../../app_path.php';
include LIB_PATH . 'init.php';
include CONFIG_PATH . 'dbtables.php';

class baseController extends template {

    public $template;
    public $data;
    public $obj;
    public $result;
    public $result_data;
    public $permission;
    public $tables;
    public $modules;
    public $modules_data;
    public $datetime;

    public function __construct() {
        //$this->template = new template();
        $this->tables = new dbtables();
        session_start();
        //To get current date and time
    }

    public function load_controller($file) {

        include $file . '.php';
    }

    public function date_time() {
        date_default_timezone_set('Asia/Calcutta');
        $this->datetime = date("Y-m-d H:i:s");
        return $this->datetime;
    }

}

?>